package com.lambda.demo.stream;

import com.lambda.demo.models.AuthorsData;

public class StreamMapTest {
  public static void main(String[] args) {
//    要求打印出年龄>100岁的作家的姓名
    AuthorsData.getAuthors().stream()
        .filter(a -> a.getAge() > 100)
        .map(a -> a.getName())
        .forEach(x -> System.out.println(x));
  }
}
